package cn.dianhun.security.repository;

import cn.dianhun.security.pojo.TRolePermissionEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * @author cyt
 * @create 2020-07-17 17:04
 */

@Repository
public interface RolePremissionRepository extends JpaRepository<TRolePermissionEntity, Long> {
    /**
     * 角色 id得到权限
     *
     * @param roleId
     * @return
     */
    ArrayList<TRolePermissionEntity> findByRoleId(String roleId);
}
